package com.tiger.project.service.impl;
import java.util.List;

import com.tiger.project.domain.ContractEnclosure;
import com.tiger.project.mapper.ContractEnclosureMapper;
import com.tiger.project.service.IContractEnclosureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author standard
 * @date 2022-09-19
 */
@Service
public class ContractEnclosureServiceImpl implements IContractEnclosureService {
    @Autowired
    private ContractEnclosureMapper contractEnclosureMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ContractEnclosure selectContractEnclosureById(Long id) {
        return contractEnclosureMapper.selectContractEnclosureById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param contractEnclosure 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ContractEnclosure> selectContractEnclosureList(ContractEnclosure contractEnclosure) {
        return contractEnclosureMapper.selectContractEnclosureList(contractEnclosure);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param contractEnclosure 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertContractEnclosure(ContractEnclosure contractEnclosure) {
        return contractEnclosureMapper.insertContractEnclosure(contractEnclosure);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param contractEnclosure 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateContractEnclosure(ContractEnclosure contractEnclosure) {
        return contractEnclosureMapper.updateContractEnclosure(contractEnclosure);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteContractEnclosureByIds(Long[] ids) {
        return contractEnclosureMapper.deleteContractEnclosureByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteContractEnclosureById(Long id) {
        return contractEnclosureMapper.deleteContractEnclosureById(id);
    }
    }
